/* CepAlterar.java
*  Criado em 02/12/2005
*
*/
package br.com.werp.regras.endereco.visao.decorador;

import java.util.HashMap;
import java.util.Map;

import org.displaytag.decorator.TableDecorator;

import br.com.werp.regras.geral.util.Html;
import br.com.werp.regras.geral.vos.endereco.CepFormVO;


/**
 * @author Rafael Carneiro - <a href = "mailto:rafael@portaljava.com">
 * rafael@portaljava.com</a>
 */
public class CepAlterar extends TableDecorator {
    public String getCeps_numero() {
        CepFormVO cepFormVO = (CepFormVO) getCurrentRowObject();
    
        Map map = new HashMap();
    
        map.put("carregar_action", "");
        map.put("ceps_id", new Integer(cepFormVO.getCeps_id()));
        map.put("ceps_numero", new Integer(cepFormVO.getCeps_numero()));
        map.put("logr_label", cepFormVO.getLogr_descricao());
        map.put("bair_label", cepFormVO.getBair_descricao());
        map.put("cida_label", cepFormVO.getCida_descricao());
    
        return Html.href("../Enderecos/CepForm.do", map) +
        cepFormVO.getCeps_numero() + "</a>";
    }
    
}
